

#include <iostream>
using namespace std;

#if  1
void func(char* p)
{
    cout << "void func(char *p)" << endl;
}

void func(int p)
{
    cout << "void func(int p)" << endl;
}

int main2()
{
    int* ptr1 = nullptr;
    char* ptr2 = nullptr;
    double* ptr3 = nullptr;
    void* ptr4 = nullptr;

    int* ptr5 = (int*)ptr4;

    // int
    func(10);
    // char*
    func(nullptr);



    return 0;
}
#endif